package test;
import java.util.Scanner;
import java.util.Random;
public class caishuzi {
    public static void main(String[] args) {
        //保底机制，3次不中，提示猜中
        int count=0;


        Random r=new Random();
        int num=r.nextInt(100)+1;
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < 20; i++) {
        int gst=sc.nextInt();
        count++;
        if(count==3){
            System.out.println("猜中了");
            break;
        }
        if(gst==num){
            System.out.println("猜中了");
            break;
        }
        else if(gst>num){
            System.out.println("大了");
        }
        else{
            System.out.println("小了");
        }
    }
}}
